<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

<div class="panel-heading">
	<ul class="nav nav-tabs">
		<li class="active"><a href="#one" data-toggle="tab">班级信息</a></li>
		<li><a href="#two" data-toggle="tab">课时安排</a></li>
		<li><a href="#three" data-toggle="tab">学员名册</a></li>
		<li><a href="#four" data-toggle="tab">通知</a></li>
		<li><a href="#five" data-toggle="tab">资料</a></li>
		<li><a href="#six" data-toggle="tab">作业</a></li>
		<li><a href="#seven" data-toggle="tab">评价</a></li>
		<li><a href="#eight" data-toggle="tab">留言板</a></li>
	</ul>
</div>
<div class="panel-body">
	<div id="myTabContent" class="tab-content">
		<div class="tab-pane fade active in" id="one">
		<div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
	<div class="form-group">
        <label for="c-pxcategoey" class="control-label col-xs-12 col-sm-2">培训类型:</label>
        <div class="col-xs-12 col-sm-8">
			<select id="c-pxcategoey" class="form-control selectpicker" name="row[pxcategoey]">
                <option value="" >--请选择--</option>
				<option value="全员" {if ($row.pxcategoey=='全员')}selected{/if}>全员</option>
				<option value="干训" {if ($row.pxcategoey=='干训')}selected{/if}>干训</option>
				<option value="见习" {if ($row.pxcategoey=='见习')}selected{/if}>见习</option>
				<option value="职初" {if ($row.pxcategoey=='职初')}selected{/if}>职初</option>
				<option value="骨干" {if ($row.pxcategoey=='骨干')}selected{/if}>骨干</option>
				<option value="名优" {if ($row.pxcategoey=='名优')}selected{/if}>名优</option>
            </select>
        </div>
    </div>
	<div class="form-group">
        <label for="c-pxmode" class="control-label col-xs-12 col-sm-2">培训模块:</label>
        <div class="col-xs-12 col-sm-8">
			<select id="c-pxmode" class="form-control selectpicker" name="row[pxmode]">
                <option value="" >--请选择--</option>
				<option value="师德素养" {if ($row.pxmode=='师德素养')}selected{/if}>师德素养</option>
				<option value="知识技能" {if ($row.pxmode=='知识技能')}selected{/if}>知识技能</option>
				<option value="实践体验" {if ($row.pxmode=='实践体验')}selected{/if}>实践体验</option>
            </select>
        </div>
    </div>
	<div class="form-group">
        <label for="c-traintime" class="control-label col-xs-12 col-sm-2">{:__('Traintime')}:</label>
        <div class="col-xs-12 col-sm-8">
		    <input id="c-traintime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" name="row[traintime]" type="text" value="{$row.traintime}" style="width:120px;">---<input id="c-trainendtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" name="row[trainendtime]" type="text" value="{$row.trainendtime}" style="width:120px;">
        </div>
    </div>
	<div class="form-group">
        <label for="c-category" class="control-label col-xs-12 col-sm-2">{:__('Category')}:</label>
        <div class="col-xs-12 col-sm-8">
			<select id="c-category" class="form-control selectpicker" name="row[category]">
				<option value="仅签到" {if ($row.category=='仅签到')}selected{/if}>仅签到</option>
				<option value="签到签退" {if ($row.category=='签到签退')}selected{/if}>签到签退</option>
            </select>
        </div>
    </div>
	<div class="form-group">
        <label for="c-typerules" class="control-label col-xs-12 col-sm-2">{:__('Typerules')}:</label>
        <div class="col-xs-12 col-sm-8">
		{:build_radios('row[typerules]', ['1/4'=>'1/4', '1/3'=>'1/3', '1/2'=>'1/2', '无'=>'无'], $row.typerules)}            
         </div>
    </div>
	<div class="form-group">
        <label for="c-cdrules" class="control-label col-xs-12 col-sm-2">{:__('Cdrules')}:</label>
        <div class="col-xs-12 col-sm-8">
			<select id="c-cdrules" class="form-control selectpicker" name="row[cdrules]">
                <option value="" >--请选择--</option>
				<option value="4次迟到/1课时" {if ($row.cdrules=='4次迟到/1课时')}selected{/if}>4次迟到/1课时</option>
				<option value="3次迟到/1课时" {if ($row.cdrules=='3次迟到/1课时')}selected{/if}>3次迟到/1课时</option>
				<option value="2次迟到/1课时" {if ($row.cdrules=='2次迟到/1课时')}selected{/if}>2次迟到/1课时</option>
            </select>
        </div>
    </div>
	<div class="form-group">
        <label for="c-typename" class="control-label col-xs-12 col-sm-2">{:__('Typename')}:</label>
        <div class="col-xs-12 col-sm-8">
			<select id="c-typename" class="form-control selectpicker" name="row[typename]" onChange="jump(this.value)">
                <option value="" >--请选择--</option>
				<option value="预设名册" {if ($row.typename=='预设名册')}selected{/if}>预设名册</option>
				<option value="非预设名册" {if ($row.typename=='非预设名册')}selected{/if}>非预设名册</option>
            </select>
        </div>
    </div>
	<div id='box-avatar' class="form-group" {if ($row.typename=='非预设名册')}style="display:none;"{/if}>
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2"> </label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" data-rule="" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-avatar" data-mimetype="*" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
        </div>
    </div>
	
	<div class="form-group">
        <label for="c-rules" class="control-label col-xs-12 col-sm-2">{:__('Rules')}:</label>
        <div class="col-xs-12 col-sm-8">
               <input id="c-rules" class="form-control" name="row[rules]" type="text" value="{$row.rules|htmlentities}">             
         </div>
    </div>
	
	<div class="form-group">
        <label for="c-gps" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[content]" class="form-control" cols="30" rows="5" >{$row.content|htmlentities}</textarea>
        </div>
    </div>
	<!--div class="form-group">
        <label for="c-pxstatus" class="control-label col-xs-12 col-sm-2">培训状态:</label>
        <div class="col-xs-12 col-sm-8">
		    <select id="c-pxstatus" class="form-control selectpicker" name="row[pxstatus]">
                <option value="" >--请选择--</option>
				<option value="未开始" {if ($row.pxstatus=='未开始')}selected{/if}>未开始</option>
				<option value="进行中" {if ($row.pxstatus=='进行中')}selected{/if}>进行中</option>
				<option value="已结束" {if ($row.pxstatus=='已结束')}selected{/if}>已结束</option>
            </select>
        </div>
    </div-->
	<div class="form-group">
        <label for="c-erwstatus" class="control-label col-xs-12 col-sm-2">二维码状态:</label>
        <div class="col-xs-12 col-sm-8">
		    <select id="c-erwstatus" class="form-control selectpicker" name="row[erwstatus]">
                <option value="" >--请选择--</option>
				<option value="开启" {if ($row.erwstatus=='开启')}selected{/if}>开启</option>
				<option value="关闭" {if ($row.erwstatus=='关闭')}selected{/if}>关闭</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
		</div>
		<div class="tab-pane fade in" id="two">
		  <div class="form-group">
        <label for="c-gps" class="control-label col-xs-12 col-sm-2">课程列表:</label>
        <div class="col-xs-12 col-sm-10">
			<dl class="fieldlist" data-template="content1tpl" data-name="row[content1]">
				<dd>
					<ins>{:__('日期')}</ins>
					<ins>{:__('时间')}</ins>
					<ins>{:__('主题')}</ins>
					<ins>{:__('上课教室')}</ins>
					<ins>{:__('定位选择')}</ins>
					<ins>{:__('教室模板')}</ins>
				</dd>
				<dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
				<!--请注意 dd和textarea间不能存在其它任何元素，实际开发中textarea应该添加个hidden进行隐藏-->
				<textarea name="row[content1]" class="form-control" cols="30" rows="5" style="display:none">{$row.content1}</textarea>
			</dl>
			<script id="content1tpl" type="text/html">
				<dd class="form-inline">
					<ins><input type="text" name="<%=name%>[<%=index%>][title]" class="form-control" value="<%=row.title%>" placeholder="日期"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][intro]" class="form-control" value="<%=row.intro%>" placeholder="时间"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][info01]" class="form-control" value="<%=row.info01%>" placeholder="主题"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][info02]" class="form-control" value="<%=row.info02%>" placeholder="上课教室"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][info03]" class="form-control" value="<%=row.info03%>" placeholder="定位选择"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][info04]" class="form-control" value="<%=row.info04%>" placeholder="教室模板"/></ins>
					<!--下面的两个按钮务必保留-->
					<span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
					<span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
				</dd>
			</script>
		</div>
    </div>
		</div>
		<div class="tab-pane fade in" id="three">
		  <div class="form-group">
        <label for="c-gps" class="control-label col-xs-12 col-sm-2">学员列表:</label>
        <div class="col-xs-12 col-sm-10">
			<dl class="fieldlist" data-template="content2tpl" data-name="row[content2]">
				<dd>
					<ins>{:__('进修编号')}</ins>
					<ins>{:__('手机号')}</ins>
					<ins>{:__('姓名')}</ins>
					<ins>{:__('学校')}</ins>
					<ins>{:__('职务')}</ins>
				</dd>
				<dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
				<!--请注意 dd和textarea间不能存在其它任何元素，实际开发中textarea应该添加个hidden进行隐藏-->
				<textarea name="row[content2]" class="form-control" cols="30" rows="5" style="display:none">{$row.content2}</textarea>
			</dl>
			<script id="content2tpl" type="text/html">
				<dd class="form-inline">
					<ins><input type="text" name="<%=name%>[<%=index%>][title]" class="form-control" value="<%=row.title%>" placeholder="进修编号"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][intro]" class="form-control" value="<%=row.intro%>" placeholder="手机号"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][info01]" class="form-control" value="<%=row.info01%>" placeholder="姓名"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][info02]" class="form-control" value="<%=row.info02%>" placeholder="学校"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][info03]" class="form-control" value="<%=row.info03%>" placeholder="职务"/></ins>
					<!--下面的两个按钮务必保留-->
					<span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
					<span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
				</dd>
			</script>
		</div>
    </div>
		</div>
		<div class="tab-pane fade in" id="four">
		  <div class="form-group">
        <label for="c-gps" class="control-label col-xs-12 col-sm-2">通知:</label>
        <div class="col-xs-12 col-sm-10">
			<dl class="fieldlist" data-template="content3tpl" data-name="row[content3]">
				<dd>
					<ins>{:__('通告标题')}</ins>
					<ins>{:__('通告内容')}</ins>
					<ins>{:__('发布时间')}</ins>
				</dd>
				<dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
				<!--请注意 dd和textarea间不能存在其它任何元素，实际开发中textarea应该添加个hidden进行隐藏-->
				<textarea name="row[content3]" class="form-control" cols="30" rows="5" style="display:none">{$row.content3}</textarea>
			</dl>
			<script id="content3tpl" type="text/html">
				<dd class="form-inline">
					<ins><input type="text" name="<%=name%>[<%=index%>][title]" class="form-control" value="<%=row.title%>" placeholder="通告标题"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][intro]" class="form-control" value="<%=row.intro%>" placeholder="通告内容"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][info01]" class="form-control" value="<%=row.info01%>" placeholder="发布时间"/></ins>
					<!--下面的两个按钮务必保留-->
					<span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
					<span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
				</dd>
			</script>
		</div>
    </div>
		</div>
		<div class="tab-pane fade in" id="five">
		  <div class="form-group">
        <label for="c-gps" class="control-label col-xs-12 col-sm-2">通知:</label>
        <div class="col-xs-12 col-sm-10">
			<dl class="fieldlist" data-template="content4tpl" data-name="row[content4]">
				<dd>
					<ins>{:__('资料主题')}</ins>
					<ins>{:__('内容')}</ins>
					<ins>{:__('发布时间')}</ins>
				</dd>
				<dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
				<!--请注意 dd和textarea间不能存在其它任何元素，实际开发中textarea应该添加个hidden进行隐藏-->
				<textarea name="row[content4]" class="form-control" cols="30" rows="5" style="display:none">{$row.content4}</textarea>
			</dl>
			<script id="content4tpl" type="text/html">
				<dd class="form-inline">
					<ins><input type="text" name="<%=name%>[<%=index%>][title]" class="form-control" value="<%=row.title%>" placeholder="资料主题"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][intro]" class="form-control" value="<%=row.intro%>" placeholder="内容"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][info01]" class="form-control" value="<%=row.info01%>" placeholder="发布时间"/></ins>
					<!--下面的两个按钮务必保留-->
					<span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
					<span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
				</dd>
			</script>
		</div>
    </div>
		</div>
		<div class="tab-pane fade in" id="six">
		  <div class="form-group">
        <label for="c-gps" class="control-label col-xs-12 col-sm-2">作业:</label>
        <div class="col-xs-12 col-sm-10">
			<dl class="fieldlist" data-template="content5tpl" data-name="row[content5]">
				<dd>
					<ins>{:__('名称')}</ins>
					<ins>{:__('内容')}</ins>
					<ins>{:__('发布时间')}</ins>
				</dd>
				<dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
				<!--请注意 dd和textarea间不能存在其它任何元素，实际开发中textarea应该添加个hidden进行隐藏-->
				<textarea name="row[content5]" class="form-control" cols="30" rows="5" style="display:none">{$row.content5}</textarea>
			</dl>
			<script id="content5tpl" type="text/html">
				<dd class="form-inline">
					<ins><input type="text" name="<%=name%>[<%=index%>][title]" class="form-control" value="<%=row.title%>" placeholder="名称"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][intro]" class="form-control" value="<%=row.intro%>" placeholder="内容"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][info01]" class="form-control" value="<%=row.info01%>" placeholder="发布时间"/></ins>
					<!--下面的两个按钮务必保留-->
					<span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
					<span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
				</dd>
			</script>
		</div>
    </div>
		</div>
		<div class="tab-pane fade in" id="seven">
		  <div class="form-group">
        <label for="c-gps" class="control-label col-xs-12 col-sm-2">评价:</label>
        <div class="col-xs-12 col-sm-10">
			<dl class="fieldlist" data-template="content6tpl" data-name="row[content6]">
				<dd>
					<ins>{:__('序号')}</ins>
					<ins>{:__('评价表标题')}</ins>
					<ins>{:__('评价要求')}</ins>
					<ins>{:__('状态')}</ins>
					<ins>{:__('发布者')}</ins>
					<ins>{:__('发布时间')}</ins>
				</dd>
				<dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 新增</a></dd>
				<!--请注意 dd和textarea间不能存在其它任何元素，实际开发中textarea应该添加个hidden进行隐藏-->
				<textarea name="row[content6]" class="form-control" cols="30" rows="5" style="display:none">{$row.content6}</textarea>
			</dl>
			<script id="content6tpl" type="text/html">
				<dd class="form-inline">
					<ins><input type="text" name="<%=name%>[<%=index%>][title]" class="form-control" value="<%=row.title%>" placeholder="序号"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][intro]" class="form-control" value="<%=row.intro%>" placeholder="评价表标题"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][info01]" class="form-control" value="<%=row.info01%>" placeholder="评价要求"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][info01]" class="form-control" value="<%=row.info01%>" placeholder="状态"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][info01]" class="form-control" value="<%=row.info01%>" placeholder="发布者"/></ins>
					<ins><input type="text" name="<%=name%>[<%=index%>][info01]" class="form-control" value="<%=row.info01%>" placeholder="发布时间"/></ins>
					<!--下面的两个按钮务必保留-->
					<span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
					<span class="btn btn-sm btn-primary btn-dragsort" style="display:none"><i class="fa fa-arrows"></i></span>
				</dd>
			</script>
		</div>
    </div>
		</div>
		<div class="tab-pane fade in" id="eight">
		  <div class="form-group">
        <label for="c-gps" class="control-label col-xs-12 col-sm-2">留言:</label>
        <div class="col-xs-12 col-sm-10">
		<div id="table" class="toolbar">
                        {:build_toolbar('refresh,add,del')}
                        <div class="dropdown btn-group {:$auth->check('notice/message/multi')?'':'hide'}">
                            <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> 开启/结束</a>
                            <ul class="dropdown-menu text-left" role="menu">
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> 设为开启</a></li>
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> 设为结束</a></li>
                            </ul>
                        </div>
                    </div>
					
		<table id="tableLogMessage" class="table table-striped table-bordered table-hover" 
			   data-operate-edit="{:$auth->check('school/school/edit')}" 
			   data-operate-del="{:$auth->check('school/school/del')}" 
			   width="100%">
		</table>
			<div id="table" class="toolbar">
                        {:build_toolbar('refresh,del')}
                    </div>
		<table id="tableMessage" class="table table-striped table-bordered table-hover" 
			   data-operate-edit="{:$auth->check('school/school/edit')}" 
			   data-operate-del="{:$auth->check('school/school/del')}" 
			   width="100%">
		</table>
		</div>
    </div>
		</div>
	</div>
</div>



	
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<script>
    var nodeData = {:json_encode($nodeList); };
	function jump(n){
		if(n=="预设名册"){
			$('#box-avatar').show();
		}else{
			$('#box-avatar').hide();
		}
	}
</script>
